package com.za.wbw.dao.shop.impl;

import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.za.wbw.dao.shop.CommentDao;
import com.za.wbw.model.shop.CommentInfo;
import com.za.wbw.model.shop.ProductInfo;

public class CommentDaoImpl extends SqlMapClientDaoSupport implements CommentDao {
	// 查询评论列表
	public List<CommentInfo> queryCommentPage(Map<String,Object> pars) throws Exception{
		return (List<CommentInfo>)getSqlMapClientTemplate().queryForList("shop.queryCommentPage", pars);
	}
	// 查询评论数量
	public int queryCommentCount(Map<String, Object> pars) throws Exception{
		return (Integer)getSqlMapClientTemplate().queryForObject("shop.queryCommentCount", pars);
	}
}
